<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        /* 字体声明 */
@font-face {
    font-family: 'icomoon';
    src: url('fonts/icomoon.eot?dao32a');
    src: url('fonts/icomoon.eot?dao32a#iefix') format('embedded-opentype'),
        url('../fonts/icomoon.ttf?dao32a') format('truetype'),
        url('fonts/icomoon.woff?dao32a') format('woff'),
        url('fonts/icomoon.svg?dao32a#icomoon') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}
        *{
            margin: 0;
            padding: 0;
        }
        body{
            letter-spacing: 1px;
            background-color: black;
            background: url(./images/0adfb032cfdf03751fa86681dc51441.jpg) no-repeat ;
            
            background-size:100% 1200px;
        }
        li {
            list-style-type: none;
        }
        a {
            text-decoration: none;
            color: #000;
        }
        .login{
            margin: 0 auto;
            margin-top: 220px;
            width: 400px;
            height: 600px;
            background-color: white;
            border-radius: 20px;
        }
        /* 头部 */
        header{
            position: relative;
            height: 100px;
           padding-top:75px;
           text-align: center;
            /* line-height: 150px; */
            /* background-color: skyblue; */
        }
        header h1{
            font-weight: 600;
            font-size: 26px;
        }
        header span {
            font-size: 14px;
            color: #999999;
        }
        header::after{
            content: '\ea0f';
            font-family: 'icomoon';
            font-size: 20px;
            position: absolute;
            top: 6px;
            right: 8px;
    /* left: -65px; */
        }
        /* 登入栏 */
        nav {
            height: 40px;
            /* background-color: yellow; */
            border-bottom: 4px solid #d7d7d7;
            /* border: 1px solid #d7d7d7; */
        }
        nav ul{
            /* width: ; */
            margin: 0 40px;
        }
        nav ul li {
            float: left;
            text-align: center;
            width: 160px;
            height: 39px;
            font-size: 18px;
            font-weight: 600;
            cursor: pointer;
            color: #999999;
            /* margin: 0 auto; */           
        }
        .current {
            color: #526ded;
            border-bottom: 5px solid #4480ed;
        }
        /* 内容输入 */
        article{
            padding-top: 45px;
            padding-left: 32px;
            padding-right: 32px;
            /* margin-top: 40px; */
            height: 40px;
            /* background-color: royalblue; */
        }
        article .input{
            width: 100%;
            /* height: 150px; */
            /* background-color: red; */
            /* margin-top: 40px; */
        }
        article .input input{
            font-size: 16px;
            width: 100%;
            height: 35px;
            border: 1px solid #d7d7d7;
            border-radius: 4px;
            margin-bottom: 10px;
        }
        .rgt{
            font-size: 16px;
            height: 30px;
            margin-top: 15px;
        }
        .rgt .left{
            float: left;
        }
        .rgt .right{
            float: right;
        }
        /* 条款 */
        .clause{
            margin-top:55px;
            font-size: 16px;
        }
        .clause ul li {
            margin-bottom: 10px;
            
        } 
        .clause ul li a{
            color: #4a85d1;
        }
        .clause input {
            width: 18px;
            height: 18px;
            margin-right: 8px;
            
            vertical-align: middle;
        }
        button{
            display: none;
            margin-top: 10px;
            background-color: #437ff4;
            
            font-size: 18px;
            width: 100%;
            height: 44px;
            border: 0;
        }
        .tab_con a{
            color: aliceblue;
        }
    </style>
    <script src="jquery.min.js"></script>
</head>
<body>
    <!-- 登入界面 -->
    <div class="login">
        <!-- 头部 -->
        <header>         
                <h1>登入图书管理系统</h1>
                <span>输入账号密码登入图书管理系统</span>
        </header>
        <!-- 登入栏 -->
        <nav>
            <ul>
                <li class="current">用户登入</li>
                <li>管理员登入</li>
            </ul>
            
        </nav>
        <!-- 内容输入 -->
        <article>
            <div class="input">
                <input type="text" placeholder="账号">
                <input type="password" name="" id="" placeholder="密码">
            </div>
            <!-- 注册和找回密码 -->
            <div class="rgt">
                <div class="left">
                    <a href="./regiter.html">注册账号</a>
                </div>
                <div class="right">
                    <a href="">找回密码</a>
                </div>
            </div>
            <!-- 条款 -->
            <div class="clause">
                <ul>
                    <li><input type="checkbox" name="" id=""><span>自动登入</span></li>
                    <li><input type="checkbox"><span>我以阅读并同意<a href="">服务协议</a>与<a href="">隐私条款</a></span></li>
                </ul>   
            </div>
            <!-- 登入 -->
            <div class="tab_con">
                <button style="display: block;"><a href="./user-book/showbook.html">用户登入</a></button>
                <button><a href="./manager-book/showbook.html">管理员的登入</a></button>
            </div>
        </article>
    </div>
    <script>
        $(function () {
            $("nav li").click(function () {
                $(this).addClass("current").siblings().removeClass("current");
                var index = $(this).index();
                $(".tab_con button").eq(index).show().siblings().hide();
            })
        })
    </script>
</body>
</html>